<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向数据</title>
</head>
<body>
<div id="div">
    <form autocomplete="off">
        姓名：<input type="text" name="username" v-model="username">
        <br>
        年龄：<input type="number" name="age" v-model="age">
    </form>
</div>
</body>
<script src="js/vuejs-2.5.16.js"></script>
<script>
    new Vue({//双向数据绑定：更新data数据时，页面数据也会更新，反之亦然
        el:"#div",
        data:{
            username:"黄金标",
            age:33
        }


    });
    </script>
</html>